import java.sql.ResultSet;
import java.sql.SQLException;


public class Bus {
	private int busId;
	private String numberPlate;
	private int employeeId;
	private String garaAddr;
	private int lineId;
	
	public Bus(ResultSet rs) throws SQLException {
		int id = rs.getInt("bus_id");
		setBusId(id);
		String numberPlate = rs.getString("number_plate");
		setNumberPlate(numberPlate);
		setEmployeeId(rs.getInt("employee_id"));
		setGaraAddr(rs.getString("gara_addr"));
		setLineId(rs.getInt("line_id"));
	}
	
	public void setBusId(int busId) {
		this.busId = busId;
	}
	public int getBusId() {
		return busId;
	}
	public void setNumberPlate(String numberPlate) {
		this.numberPlate = numberPlate;
	}
	public String getNumberPlate() {
		return numberPlate;
	}
	public void setEmployeeId(int employeeId) {
		this.employeeId = employeeId;
	}
	public int getEmployeeId() {
		return employeeId;
	}
	public void setGaraAddr(String faraAddr) {
		this.garaAddr = faraAddr;
	}
	public String getGaraAddr() {
		return garaAddr;
	}
	public void setLineId(int lineId) {
		this.lineId = lineId;
	}
	public int getLineId() {
		return lineId;
	}
}
